package com.xuecheng.user.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 用户名已存在，无法注册
 * @date 2025/2/25 20:28
 */
public class AuthUsernameAlreadyExistException extends XCPlusBaseException {

    AuthUsernameAlreadyExistException(String message) {
        super(message);
    }

    public static void cast(){
        throw new AuthUsernameAlreadyExistException(AuthError.AUTH_USERNAME_ALREADY_EXIST.getErrMsg());
    }
}
